package com.example.demo.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "chat.stt")
@Data
public class AliSTTProperties {
    @Value("${chat.stt.api-key}")
    private String apiKey;

    @Bean
    public String getSTTKey(){
        return apiKey;
    }
}
